<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>

    <!-- MDN：https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Modules -->
    <!--  -->
    <!-- *********** -->

    
    <!-- AMD -->
    <!-- <script src="https://cdn.bootcdn.net/ajax/libs/three.js/r122/three.min.js"></script> -->
    <!-- <script type="module">
        import * as THREE from "./../three.js"

    </script> -->
    <!--  -->
    <!-- <script type="module">
      import * as THREE from "https://cdn.bootcdn.net/ajax/libs/three.js/r122/three.module.js";
      window.THREE = THREE;
      init();
      //   console.log(THREE)
    </script> -->
    <!--  -->
    <script>
      import(
        "https://cdn.bootcdn.net/ajax/libs/three.js/r122/three.module.js"
      ).then((module) => {
        //   console.log(module);
        window.THREE = module;
        init();
      });
    </script>
    <!--  -->
    <!-- <script src="./../three.js"></script> -->

    <script>
      function init() {
        console.log(THREE);
      }
    </script>
  </body>
</html>
